package com.dbqn.demo;

import com.dbqn.demo.pojo.SayHello;
import com.dbqn.demo.pojo.SayHelloProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(DemoApplication.class, args);
        SayHelloProperties bean = run.getBean(SayHelloProperties.class);
        System.out.println(bean);
    }

}
